package com.guigu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.mapper.PurchaseOrderDetailsMapper;
import com.guigu.pojo.PurchaseOrderDetails;
import com.guigu.service.PurchaseOrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 采购单明细表 服务实现类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Service
public class PurchaseOrderDetailsServiceImpl extends ServiceImpl<PurchaseOrderDetailsMapper, PurchaseOrderDetails> implements PurchaseOrderDetailsService {

    @Autowired
    private PurchaseOrderDetailsMapper purchaseOrderDetailsMapper;

    @Override
    public List<PurchaseOrderDetails> getAllPurchaseOrderDetailsByPurchaseOrderNumber(String purchaseOrderNumber) {
        List<PurchaseOrderDetails> purchaseOrderDetails = purchaseOrderDetailsMapper.getPurchaseOrderDetailsByPurchaseOrderNumber(purchaseOrderNumber);
        System.out.println(purchaseOrderDetails);


        return purchaseOrderDetails;
    }
}
